Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested subscripts parsing #114 #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

postaid
Copy link

@postaid postaid commented Oct 23, 2024

Hi @siefkenj
This PR should fix #114
Main change is to replace "group" with "math_group" in "math_token" section of peg latex grammar.
Also add "options" param to processLatexToAstViaUnified function which allows ti use "math" mode

@siefkenj
Copy link
Owner

One concern of mine is that something like $x*\text{foo}$ will not get parsed correctly. Can you check that this PR still parses text inside of math correctly?

@siefkenj
Copy link
Owner

Thanks for the contribution! It looks like a few tests need to be fixed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index tokens ('^', '_') are parsed as string
2 participants